package com.github.catvod.spider.merge;

import java.util.List;

/* loaded from: classes.dex */
abstract class ND extends fa {
    Object q;

    ND() {
    }

    private void rl() {
        if (y()) {
            return;
        }
        Object obj = this.q;
        QF qf = new QF();
        this.q = qf;
        if (obj != null) {
            qf.yx(PU(), (String) obj);
        }
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // com.github.catvod.spider.merge.fa
    /* renamed from: E, reason: merged with bridge method [inline-methods] */
    public ND F8(fa faVar) {
        ND nd = (ND) super.F8(faVar);
        if (y()) {
            nd.q = ((QF) this.q).clone();
        }
        return nd;
    }

    @Override // com.github.catvod.spider.merge.fa
    public final QF I() {
        rl();
        return (QF) this.q;
    }

    @Override // com.github.catvod.spider.merge.fa
    public String h(String str) {
        rl();
        return super.h(str);
    }

    @Override // com.github.catvod.spider.merge.fa
    protected List<fa> iU() {
        return fa.h;
    }

    @Override // com.github.catvod.spider.merge.fa
    public String j(String str) {
        R2.u(str);
        return !y() ? str.equals(PU()) ? (String) this.q : "" : super.j(str);
    }

    @Override // com.github.catvod.spider.merge.fa
    public fa n() {
        return this;
    }

    @Override // com.github.catvod.spider.merge.fa
    public String oC() {
        return PD() ? C4().oC() : "";
    }

    @Override // com.github.catvod.spider.merge.fa
    public fa q(String str, String str2) {
        if (y() || !str.equals(PU())) {
            rl();
            super.q(str, str2);
        } else {
            this.q = str2;
        }
        return this;
    }

    String qG() {
        return j(PU());
    }

    @Override // com.github.catvod.spider.merge.fa
    protected void t(String str) {
    }

    @Override // com.github.catvod.spider.merge.fa
    public int u() {
        return 0;
    }

    @Override // com.github.catvod.spider.merge.fa
    protected final boolean y() {
        return this.q instanceof QF;
    }
}
